package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.Outsto;
import com.fs.vo.Condition;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

/**
 * @author hyy
 * @version 1.0
 * @description: 出库审批服务层
 * @date 2024/10/18 17:00
 */
public interface OutstoService {
    /**
     * 出库审批表分页查询
     * @param condition
     * @return
     */
    Page<Outsto> queryAll(Condition<Outsto> condition);

    /**
     * 修改审批表
     * @param outsto
     * @return
     */
    Boolean updateState(Outsto outsto);

    /**
     * 查询审批表详情
     * @param outStoId
     * @return
     */
    Outsto queryById(Integer outStoId);

    /**
     * 新增审批表
     * @param outsto 对象
     * @return
     */
    Integer addOutsto(Outsto outsto);

    /**
     * 删除出库申请
     * @param id
     * @return
     */
    Integer delOutsto(Integer id);
}
